package com.funong.matrix.biz.power.facade.impl;

import cn.hutool.core.lang.tree.Tree;
import com.funong.matrix.biz.base.entity.SysPermissionEntity;
import com.funong.matrix.biz.power.domain.SysPermissionDomainDao;
import com.funong.matrix.biz.power.facade.SysPermissionFacade;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 权限
 *
 * @author lincl
 */
@Service
public class SysPermissionFacadeImpl implements SysPermissionFacade {

    @Resource
    private SysPermissionDomainDao sysPermissionDomainDao;

    @Override
    public List<Tree<String>> querySelect(Integer systemId, Integer groupType) {
        return sysPermissionDomainDao.querySelect(systemId, groupType);
    }

    @Override
    public List<SysPermissionEntity> queryAll(Integer systemId) {
        return sysPermissionDomainDao.queryAll(systemId);
    }
}
